package com.example.service;

import com.example.domain.Manager;
import com.example.mapper.ManagerMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 管理员服务层
 */
@Service
public class ManagerService {
    @Autowired
    private ManagerMapper managerMapper;

    public Manager login(String username, String password) {
        return managerMapper.selectByUsernameAndPassword(username, password);
    }
}
